package com.example.oracle.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: 实体对象
 * @author: ydf
 * @date: 2020/12/20 23:54
 * @version: v1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("T_USER")
public class UserEntity extends Model<UserEntity> {

    @TableId(value = "USER_ID",type = IdType.AUTO)
    private Integer userId;

    @TableField("USER_NAME")
    private String userName;
}
